<?php
/*
 * Created on 08.03.2006
 *
 */
 
class fmt_setLocaleHandler 
{

    function startElement (& $sender, $attrs, $line)
    {
        if (empty($attrs['value']))
            die ("Attribute value is missing in fmt:setLocale in line ".$line."!\n");
        $sender->appendCode('$actionform->set("__pspLocale", '.$attrs['value'].
            '); setlocale (LC_ALL, '.$attrs['value'].'); $localeconv = localeconv(); $actionform->set("localeconv", $localeconv);'."\n");
    }
    
    function endElement (& $sender)
    {
    }

}

?>
